﻿@import "mixins.less";

.@{ui}-btn {
    margin-right: 8px;

    .@{ui}-icon {
        margin-top: -1px;
    }
}

.@{ui}-checkbox, .@{ui}-radio, .@{ui}-select {
    margin-right: 50px;
}

.@{ui}-input-label {
    margin-bottom: 10px;
}

.@{ui}-input-addon {
    .@{ui}-select {
        margin: 0;
    }
}

.@{ui}-select-label {
    vertical-align: middle;
    width: 200px;
}

.@{ui}-input {
    .@{ui}-select {
        width: 80px;
    }
}

.@{ui}-alert {
    margin-bottom: 12px;
}

.page {
    .title {
        color: @color-text-deep;
        font-size: 24px;
        line-height: 24px;

        .@{ui}-btn {
            float: right;
        }
    }

    .desc {
        color: @color-text-normal;
        background-color: @color-background-normal;
        padding: 20px;
        margin-top: 25px;
    }

    code {
        color: #656565;
        font-family: "Lucida Console", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
        font-size: 12px;
        background-color: #f8f8f8;
        border: 1px solid #f0f0f0;
        padding: 1px 5px;
        margin: 0 5px;
        line-height: 1.5;
    }

    pre {
        display: none;
        overflow: hidden;

        code {
            border: none;
            margin-left: -60px;

            .hljs-tag {
                line-height: 22px;
            }
        }
    }

    .@{ui}-btn {
        .@{ui}-icon {
            width: 16px;
            height: 16px;
            line-height: 1;
            vertical-align: middle;
            display: inline-block;
            -webkit-text-stroke-width: 0;
        }
    }

    .section {
        margin-top: 40px;

        .title {
            position: relative;
            overflow: hidden;

            &:before {
                content: '';
                display: block;
                height: 1px;
                width: 100%;
                position: absolute;
                left: 0;
                top: 12px;
                background-color: #e6e6e6;
                z-index: 0;
            }

            .text {
                position: relative;
                display: inline-block;
                padding-right: 10px;
                background-color: #fff;
            }

            &:after {
                content: '';
                display: block;
                height: 100%;
                width: 62px;
                position: absolute;
                right: 0;
                top: 0;
                background-color: #fff;
                z-index: 0;
            }

            .@{ui}-btn {
                position: absolute;
                right: 0;
                top: 0;
                z-index: 1;
            }
        }

        .demo {
            margin-top: 25px;
            .ut-clearfix;

            .@{ui}-row {
                margin-bottom: 10px;

                label {
                    min-width: 80px;
                    display: inline-block;
                }
            }
        }

        .demo.@{ui}-input-icon {
            .@{ui}-input {
                margin: 0;
            }
        }

        .explain {
            margin-top: 25px;
            line-height: 22px;
        }
    }

    .section-api {
        margin-top: 70px;

        .title:before {
            display: none;
        }

        pre {
            display: block;
        }

        .ul-apis {
            padding-left: 16px;

            li {
                list-style: circle;
                margin: 10px 0;

                code {
                    margin-left: 0;
                }
            }
        }

        table {
            border-collapse: collapse;
            border-spacing: 0px;
            empty-cells: show;
            border: 1px solid #e9e9e9;
            width: 100%;
            margin: 16px 0;

            th {
                border: 1px solid #e9e9e9;
                padding: 8px 16px;
                text-align: left;
                background: #F7F7F7;
            }

            td {
                border: 1px solid #e9e9e9;
                padding: 8px 16px;
                text-align: left;

                &:first-child {
                    width: 20%;
                }

                &:nth-child(3) {
                    width: 20%;
                }

                &:last-child {
                    width: 15%;
                }
            }
        }
    }

    .@{ui}-btn-group {
        margin-right: 8px;

        .icon-back {
            margin-right: .5em;
        }

        .icon-more {
            margin-left: .5em;
        }
    }

    #input-size {
        .@{ui}-input {
            width: 200px;
            margin-right: 10px;
        }
    }

    .@{ui}-tab {
        width: 600px;

        .@{ui}-tab-content {
            line-height: 24px;
            width: 600px;
        }
    }
}
